package com.taritari.journal.services;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.taritari.journal.entity.po.BrowseLog;
import com.taritari.journal.mapper.BrowseLogMapper;
import com.taritari.journal.services.impl.BrowseLogServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author taritari
 * @date 2024-01-11 18:45
 * @description 浏览记录
 */
@Slf4j
@Service
public class BrowseLogService extends ServiceImpl<BrowseLogMapper, BrowseLog> implements BrowseLogServiceImpl {
    @Autowired
    private BrowseLogMapper browseLogMapper;
    @Override
    public int insertBrowseLog(BrowseLog browseLog) {
        int insert = browseLogMapper.insert(browseLog);
        return insert;
    }
}
